import vue from 'vue'
import VueRouter from 'vue-router'
vue.use(VueRouter)
// import login from '../components/login'
// import main from '../components/main'




export default new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/login',
            component:()=>import ('@/components/login'),
            name: 'login'
        },
        {
            path: '/main',
            component:()=>import('@/components/main'),
            name: 'main',
            children:[
                {
                    path:'approval',
                    name:'approval',
                    component: () => import('@/components/content/approval'),
                },
                {
                    path:'query',
                    name:'query',
                    component: () => import('@/components/content/query'),
                },
                {
                    path:'address',
                    name:'address',
                    component: () => import ('@/components/content/address'),
                },
                {
                    path:'email',
                    name:'email',
                    component: () => import ('@/components/content/email'),
                },
                {
                    path:'idea',
                    name:'idea',
                    component: () => import('@/components/content/idea'),
                },
                {
                    path:'setting',
                    name:'setting',
                    component: () => import('@/components/content/setting.vue'),
                },
               
            ],
        },
    ]

})